package com.bcmusic.authorization.pojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.lang.String;
import java.lang.Integer;
/****
 * @Author:admin
 * @Description:Authorization构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "Authorization",value = "Authorization")
@Table(name="authorization")
public class Authorization implements Serializable{

	@ApiModelProperty(value = "授权id",required = false)
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "authorization_id")
	private Integer authorizationId;//授权id

	@ApiModelProperty(value = "音乐id",required = false)
	@Column(name = "music_id")
	private Integer musicId;//音乐id

	@ApiModelProperty(value = "版权注册码",required = false)
	@Column(name = "authorization_code")
	private String authorizationCode;//版权注册码

	@ApiModelProperty(value = "授权类型",required = false)
	@Column(name = "allow_type")
	private String allowType;//授权类型

	@ApiModelProperty(value = "授权地域",required = false)
	@Column(name = "allow_region")
	private Integer allowRegion;//授权地域

	@ApiModelProperty(value = "开始时间",required = false)
	@Column(name = "authorization_start_time")
	private Date authorizationStartTime;//开始时间

	@ApiModelProperty(value = "截止时间",required = false)
	@Column(name = "authorization_end_time")
	private Date authorizationEndTime;//截止时间

	@ApiModelProperty(value = "被授权方名字",required = false)
	@Column(name = "owner_name")
	private String ownerName;//被授权方名字

	@ApiModelProperty(value = "被授权方id",required = false)
	@Column(name = "owner_number")
	private String ownerNumber;//被授权方id

	@ApiModelProperty(value = "0表示过期了，一表示正在生效，2表示还没有生效",required = false)
	@Column(name = "valid_status")
	private Integer validStatus;//0表示过期了，一表示正在生效，2表示还没有生效

	@ApiModelProperty(value = "",required = false)
	@Column(name = "create_time")
	private Date createTime;//

	@ApiModelProperty(value = "",required = false)
	@Column(name = "modification_time")
	private Date modificationTime;//



	//get方法
	public Integer getAuthorizationId() {
		return authorizationId;
	}

	//set方法
	public void setAuthorizationId(Integer authorizationId) {
		this.authorizationId = authorizationId;
	}
	//get方法
	public Integer getMusicId() {
		return musicId;
	}

	//set方法
	public void setMusicId(Integer musicId) {
		this.musicId = musicId;
	}
	//get方法
	public String getAuthorizationCode() {
		return authorizationCode;
	}

	//set方法
	public void setAuthorizationCode(String authorizationCode) {
		this.authorizationCode = authorizationCode;
	}
	//get方法
	public String getAllowType() {
		return allowType;
	}

	//set方法
	public void setAllowType(String allowType) {
		this.allowType = allowType;
	}
	//get方法
	public Integer getAllowRegion() {
		return allowRegion;
	}

	//set方法
	public void setAllowRegion(Integer allowRegion) {
		this.allowRegion = allowRegion;
	}
	//get方法
	public Date getAuthorizationStartTime() {
		return authorizationStartTime;
	}

	//set方法
	public void setAuthorizationStartTime(Date authorizationStartTime) {
		this.authorizationStartTime = authorizationStartTime;
	}
	//get方法
	public Date getAuthorizationEndTime() {
		return authorizationEndTime;
	}

	//set方法
	public void setAuthorizationEndTime(Date authorizationEndTime) {
		this.authorizationEndTime = authorizationEndTime;
	}
	//get方法
	public String getOwnerName() {
		return ownerName;
	}

	//set方法
	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}
	//get方法
	public String getOwnerNumber() {
		return ownerNumber;
	}

	//set方法
	public void setOwnerNumber(String ownerNumber) {
		this.ownerNumber = ownerNumber;
	}
	//get方法
	public Integer getValidStatus() {
		return validStatus;
	}

	//set方法
	public void setValidStatus(Integer validStatus) {
		this.validStatus = validStatus;
	}
	//get方法
	public Date getCreateTime() {
		return createTime;
	}

	//set方法
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	//get方法
	public Date getModificationTime() {
		return modificationTime;
	}

	//set方法
	public void setModificationTime(Date modificationTime) {
		this.modificationTime = modificationTime;
	}


}
